#define  _CRT_SECURE_NO_WARNINGS 1

#include"List.h"

void test()
{
	ListNode* plist;
	plist = ListInit();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPrint(plist);

	ListPopBack(plist);
	ListPopBack(plist);
	ListPrint(plist);

	ListPushFront(plist,0);
	ListPrint(plist);
	ListPopFront(plist);
	ListPrint(plist);

	/*ListDestory(plist);
	ListPrint(plist);*/

	ListNode* pos = ListFind(plist,2);
	ListInsert(pos, 20);
	ListPrint(plist);
}

int main()
{
	test();
	return 0;
}